"""day0719 URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path
from myapp import views
urlpatterns = [
    path('Users/<str:name>',views.Users.as_view()),
    path('dada/<str:mod>',views.Userc.as_view()),
    # 图片验证码接口
    path('image_code/<str:uuid>/',views.ImgeCode.as_view()),
    # 用户注册
    path('register/',views.RegisterAPIView.as_view()),
    # 用户的登入
    path('login/',views.Login.as_view()),
    path('users/user/userInfo/',views.UserInfoAPIView.as_view()),

    path('user/addAddr/',views.Userddr.as_view()),
    # 修改用户的密码
    path('user/password/',views.UpdatePw.as_view()),



]
